package io;

import java.io.*;

public class OisDemo
{
    public static void main(String[] args) throws IOException, ClassNotFoundException
    {
        FileInputStream fis = new FileInputStream("wanglong.obj");
        ObjectInputStream ois = new ObjectInputStream(fis);
        Person p = (Person) ois.readObject();
        System.out.println(p);
    }
}
